package com.cloudwise.pollux.user.rpc;

import com.cloudwise.pollux.common.request.PlaceOrderRequest;
import com.cloudwise.pollux.common.response.Response;
import org.springframework.stereotype.Component;

/**
 * Order服务接口熔断
 * @author sky
 * @date 2020-02-02
 */
@Component
public class OrderCallback implements OrderInterface {

    @Override
    public Response placeOrder(PlaceOrderRequest placeOrderRequest) {
        return Response.failure("服务繁忙，请稍后重试");
    }

    @Override
    public Response cancleOrder(String orderId) {
        return Response.failure("服务繁忙，请稍后重试");
    }
}
